const  CHEF_AVATAR_OFFSET= [
    [35.3,-119.8],//0001
    [23.8,-174.3],//0002
    [33.3,-120.3],//0003
    [18.6,-116.8],//0004
    [15.5,-163.1],//0005
    [22.0,-119.8],//0006
    [32.7,-140.7],//0007
    [41.1,-115.6],//0008
    [-1.9,-117.7],//0009
    [-2.9,-118.2],//0010
    [-7.6,-145.4],//0011
    [ 3.4,-141.9],//0012
    [20.7,-118.8],//0013
    [ 9.6,-134.8],//0014
    [20.2,-124.6],//0015
    [32.6,-117.9],//0016
    [ 6.9,-120.1],//0017
    [17.0,-135.0],//0018
    [14.5,-117.5],//0019
    [18.5,-121.9],//0020
    [ 9.6,-120.6],//0021
    [ 8.8,-121.8],//0022
    [  -1,-113.0],//0023
    [-6.8,-142.3],//0024
]
const RESTAURANT_TYPE= cc.Enum({
    NONE:0,//未建立
    JPFOOD:1, //日料
    BARBECUE:2,//烧烤
    WESTERN:3,//西餐
    HOTPOT:4,//火锅
    HOMECOOKING:5,//家常菜
    MILKYTEA:6,//奶茶
    ICECREAM:7,//冰淇淋
    FASTFOOD:8,//快餐
    SEAFOOD:9,//海鲜
    CAKE:10,//蛋糕店
    COFFEE:11,//咖啡店
    BAR:12 //酒吧
});
const RESTAURANT_GAIN_MULTIPLY_LIST= cc.Enum({
    default:[[10,2],[20,2],[30,2],[40,2],[50,2],[75,2],[100,2],[125,2],[150,2],[175,2],[200,2],[250,2],[300,2],[350,2],[400,2],[450,2],[500,2],[550,2],[600,2],[650,2],[700,2],[800,2],[900,2],[1000,2],[1100,2],[1200,2],[1300,2],[1400,2],[1500,2],[1600,2],[1700,2],[1800,2],[1900,2],[2000,2],[2200,2],[2400,2],[2600,2],[2800,2],[3000,2],[3500,2],[4000,2],[4500,2],[5000,2],[5500,2],[6000,2],[6500,2],[7000,2],[8000,2],[9000,2],[9999,2]],
    matrix:[
        [[25,2],[50,2],[100,2],[200,2],[300,2],[400,2],[500,4],[600,4],[700,4],[800,4],[900,4],[1000,5],[1100,4],[1200,4],[1300,4],[1400,4],[1500,4],[1600,4],[1700,4],[1800,4],[1900,4],[2000,5],[2250,2],[2500,2],[2750,2],[3000,5],[3250,2],[3500,2],[3750,2],[4000,5],[4250,2],[4500,2],[4750,2],[5000,5],[5250,3],[5500,3],[5750,3],[6000,5],[6250,3],[6500,3],[6750,3],[7000,15],[7250,3],[7500,3],[7777,3],[8000,3],[8200,3],[8400,3],[8600,3],[8800,3],[9100,3],[9200,3],[9300,3],[9400,3],[9500,3],[9600,3],[9700,3],[9800,3],[9999,2],[10000,5]],
        [[25,2],[50,2],[100,2],[125,2],[150,2],[175,2],[200,2],[225,2],[250,3],[275,3],[300,2],[325,4],[350,3],[375,4],[400,2],[425,4],[450,4],[475,4],[500,11],[525,5],[550,5],[575,5],[600,11],[625,5],[650,6],[675,6],[700,11],[725,6],[750,6],[775,3],[800,11],[825,7],[850,7],[875,7],[900,11],[925,7],[950,7],[975,7],[1000,7777777],[1025,7],[1050,7],[1075,8],[1100,8],[1125,8],[1150,8],[1175,8],[1200,8],[1225,8],[1250,8],[1275,8],[1300,7777],[1350,9],[1400,9],[1450,9],[1500,9],[1550,9],[1600,9],[1650,9],[1700,9],[1750,9],[1800,10],[1850,10],[1900,10],[1950,10],[2000,7777],[2100,15],[2200,15],[2300,15],[2400,15],[2500,777],[2600,15],[2700,15],[2800,15],[2900,15],[3000,777],[3100,20],[3200,20],[3300,20],[3400,20],[3500,777],[3600,25],[3700,25],[3800,25],[3900,25],[4000,30],[4100,30],[4200,30],[4300,30],[4400,30],[4500,30],[4600,30],[4700,30],[4800,30],[4900,30],[5000,50],[5100,50],[5200,50],[5300,50],[5400,50]],
        [[25,2],[50,2],[100,2],[200,2],[300,2],[400,2],[500,2],[600,2],[700,2],[800,2],[900,2],[1000,3],[1100,2],[1200,2],[1300,2],[1400,2],[1500,2],[1600,2],[1700,2],[1800,2],[1900,2],[2000,5],[2100,3],[2200,3],[2300,3],[2400,3],[2500,3],[2600,3],[2700,3],[2800,3],[2900,3],[3000,3],[3100,3],[3200,3],[3300,3],[3400,3],[3500,3],[3600,3],[3700,3],[3800,3],[3900,3],[4000,5],[4100,3],[4200,3],[4300,3],[4400,3],[4500,3],[4600,3],[4700,3],[4800,3],[4900,3],[5000,5],[5250,3],[5500,3]],
        [[25,2],[50,2],[100,2],[200,2],[300,2],[400,2],[500,2],[600,2],[700,2],[800,2],[900,2],[1000,3],[1100,2],[1200,2],[1300,2],[1400,2],[1500,2],[1600,2],[1700,2],[1800,2],[1900,2],[2000,5],[2100,3],[2200,3],[2300,3],[2400,3],[2500,3],[2600,3],[2700,3],[2800,3],[2900,3],[3000,3],[3100,3],[3200,3],[3300,3],[3400,3],[3500,3],[3600,3],[3700,3],[3800,3],[3900,3],[4000,5],[4100,3],[4200,3],[4300,3],[4400,3],[4500,3],[4600,3],[4700,3],[4800,3],[4900,3],[5000,5],[5250,3],[5500,3],[5750,3]],
        [[25,2],[50,2],[100,2],[200,2],[300,2],[400,2],[500,2],[600,2],[700,2],[800,2],[900,2],[1000,3],[1100,2],[1200,2],[1300,2],[1400,2],[1500,2],[1600,2],[1700,2],[1800,2],[1900,2],[2000,5],[2100,3],[2200,3],[2300,3],[2400,3],[2500,3],[2600,3],[2700,3],[2800,3],[2900,3],[3000,3],[3100,3],[3200,3],[3300,3],[3400,3],[3500,3],[3600,3],[3700,3],[3800,3],[3900,3],[4000,5],[4100,3],[4200,3],[4300,3],[4400,3],[4500,3],[4600,3],[4700,3],[4800,3],[4900,3],[5000,5],[5250,3],[5500,3],[5750,3],[6000,3],[6250,3],[6500,3],[6750,3]],
        [[25,2],[50,2],[100,2],[200,2],[300,2],[400,2],[500,2],[600,2],[700,2],[800,2],[900,2],[1000,3],[1100,2],[1200,2],[1300,2],[1400,2],[1500,2],[1600,2],[1700,2],[1800,2],[1900,2],[2000,5],[2100,3],[2200,3],[2300,3],[2400,3],[2500,3],[2600,3],[2700,3],[2800,3],[2900,3],[3000,3],[3250,5],[3500,5],[3750,5],[4000,5],[4250,5],[4500,3],[4750,5],[5000,5],[5250,3],[5500,3],[5750,3],[6000,5],[6250,4],[6500,5]],
        [[25,2],[50,2],[100,2],[200,2],[300,2],[400,2],[500,2],[600,2],[700,2],[800,2],[900,2],[1000,3],[1100,2],[1200,2],[1300,2],[1400,2],[1500,2],[1600,2],[1700,2],[1800,2],[1900,2],[2000,5],[2100,3],[2200,3],[2300,3],[2400,3],[2500,3],[2600,3],[2700,3],[2800,3],[2900,3],[3000,3],[3250,3],[3500,3],[3750,3],[4000,5],[4250,3],[4500,3],[4750,3],[5000,7],[5250,3],[5500,3],[5750,3],[6000,7],[6250,3],[6500,3],[6750,3],[7000,7]],
        [[25,2],[50,2],[100,2],[200,2],[300,2],[400,2],[500,2],[600,2],[700,2],[800,2],[900,2],[1000,3],[1100,2],[1200,2],[1300,2],[1400,2],[1500,2],[1600,2],[1700,2],[1800,2],[1900,2],[2000,5],[2100,3],[2200,3],[2300,3],[2400,3],[2500,3],[2600,3],[2700,3],[2800,3],[2900,3],[3000,3],[3250,3],[3500,3],[3750,3],[4000,5],[4250,3],[4500,3],[4750,3],[5000,7],[5250,3],[5500,3],[5750,3],[6000,9],[6250,3],[6500,3],[6750,3],[7000,9],[7250,3],[7500,3],[7750,3]],
        [[25,2],[50,2],[100,2],[200,2],[300,2],[400,2],[500,2],[600,2],[700,2],[800,2],[900,2],[1000,3],[1100,2],[1200,2],[1300,2],[1400,2],[1500,2],[1600,2],[1700,2],[1800,2],[1900,2],[2000,5],[2250,2],[2500,2],[2750,2],[3000,2],[3250,2],[3500,2],[3750,2],[4000,2],[4250,2],[4500,5],[4750,3],[5000,3],[5250,3],[5500,5],[5750,3],[6000,5],[6250,3],[6500,5],[6750,3],[7000,5],[7250,3],[7500,3],[7750,3],[8000,5],[8250,3],[8500,3]],
        [[25,2],[50,2],[100,2],[200,2],[300,2],[400,2],[500,2],[600,2],[700,2],[800,2],[900,2],[1000,3],[1100,2],[1200,2],[1300,2],[1400,2],[1500,2],[1600,2],[1700,2],[1800,2],[1900,2],[2000,5],[2250,2],[2500,2],[2750,2],[3000,2],[3250,2],[3500,2],[3750,2],[4000,2],[4250,2],[4500,5],[4750,3],[5000,3],[5250,3],[5500,5],[5750,3],[6000,5],[6250,3],[6500,5],[6750,3],[7000,7],[7250,3],[7500,3],[7750,3],[8000,5],[8250,3],[8500,3],[8750,3],[9000,3],[9250,7],[9500,3],[9750,3]],
    ]
    
});

const RESTAURANT_BUY_MULTIPLY_BETWEEN_FLOOR_LIST    = [0,   75,     1025,    20650,     403680,       62441600,      59929920000,     57915904000000,    91499084800000000,      14579890176000000000]
const CHEF_RECRUIT_COST_BETWEEN_FLOOR_LIST          = [100, 69875,  759750,  20500000,  306612340,    12324948800,   14681236538560,  21712690345324820, 31369835688489462640,   9410950579278904542200]
const RESTAURANT_COST_MULTIPLY_BETWEEN_FLOOR_LIST   = [4,18.625,11.1,14.82,18.88,27.89,39.89,51.89,21.89,11.89]
const RESTAURANT_GAIN_MULTIPLY_BETWEEN_FLOOR_LIST   = [1,60,10,13,12,12,12,12,12,12]
const OFFLINE_GAIN_RATIO = 0.1
const SECRETARY_GAIN_RATIO = 0.2
const WORK_TIME =  cc.Enum({
    YELLOW:[[11,13]],
    RED:[[17,24],[0,10]],
    BLUE:[[10,23]],
})
//[1,12,5,4,9,7,6,5,10,15]

var COMMON_VALUE = {
    CHEF_AVATAR_OFFSET,
    resolution:cc.v2(1080,2160),
    RESTAURANT_TYPE:RESTAURANT_TYPE,
    COOLDOWN_EARTHQUAKE:600,
    DURATION_EARTHQUAKE:5,
    COOLDOWN_FORTUNECAT:18000,
    DURATION_FORTUNECAT:1,
    COOLDOWN_OVERTIME:21600,
    DURATION_OVERTIME:7200,
    RESTAURANT_GAIN_MULTIPLY_LIST:RESTAURANT_GAIN_MULTIPLY_LIST,//同楼层收益递增
    RESTAURANT_COST_MULTIPLY_BETWEEN_FLOOR_LIST:RESTAURANT_COST_MULTIPLY_BETWEEN_FLOOR_LIST,// 不同楼层升级消耗的资金列表
    RESTAURANT_GAIN_MULTIPLY_BETWEEN_FLOOR_LIST:RESTAURANT_GAIN_MULTIPLY_BETWEEN_FLOOR_LIST,// 不同楼层升级收益递增表
    RESTAURANT_BUY_MULTIPLY_BETWEEN_FLOOR_LIST:RESTAURANT_BUY_MULTIPLY_BETWEEN_FLOOR_LIST,//不同楼层购买递增列表
    CHEF_RECRUIT_COST_BETWEEN_FLOOR_LIST:CHEF_RECRUIT_COST_BETWEEN_FLOOR_LIST,//不同楼层招聘递增列表
    WORK_TIME:WORK_TIME,
    SECRETARY_GAIN_RATIO:SECRETARY_GAIN_RATIO,
    OFFLINE_GAIN_RATIO:OFFLINE_GAIN_RATIO,
    MONEY_BUYING_LIST:[
        {id:"01",target: 1          ,times:2,cost:500},
        {id:"02",target: 2          ,times:3,cost:2115},
        {id:"03",target: "ALL"      ,times:2,cost:6.3252241e+6},
        {id:"04",target: 3          ,times:2,cost:8.5624254e+9},
        {id:"05",target: "YELLOW"   ,times:3,cost:1.8664222e+13},
        {id:"06",target: 4          ,times:3,cost:4.2205334e+16},
        {id:"07",target: "RED"      ,times:2,cost:3.3312345e+20},
        {id:"08",target: 5          ,times:3,cost:4.9965793e+23},
        {id:"09",target: "BLUE"     ,times:3,cost:5.9962245e+26},
        {id:"10",target: 6          ,times:2,cost:5.9962293e+29},
        {id:"11",target: "ALL"      ,times:2,cost:6.8956634e+32},
        {id:"12",target: 7          ,times:2,cost:7.5852298e+35},
        {id:"13",target: "YELLOW"   ,times:2,cost:8.9505712e+38},
        {id:"14",target: 8          ,times:2,cost:1.0472168e+41},
        {id:"15",target: "RED"      ,times:2,cost:1.1728828e+44},
        {id:"16",target: 9          ,times:2,cost:1.1124514e+47},
        {id:"17",target: "BLUE"     ,times:2,cost:1.5777620e+50},
        {id:"18",target:10          ,times:2,cost:2.6821085e+53},
        {id:"19",target: "ALL"      ,times:2,cost:3.16499059+58},
        {id:"20",target:10          ,times:2,cost:3.73468890+63},
    ],
    REPUTATION_BUYING_LIST:[
        {id:"01",target: 1          ,times:2,   cost:100},
        {id:"02",target: 2          ,times:3,   cost:1000},
        {id:"03",target: "YELLOW"      ,times:2,cost:10000},
        {id:"04",target: 3          ,times:2,   cost:10e+6},
        {id:"05",target: "ALL"   ,times:3,      cost:10e+9},
        {id:"06",target: 4          ,times:3,   cost:10e+11},
        {id:"07",target: "BLUE"      ,times:2,  cost:10e+13},
        {id:"08",target: 5          ,times:3,   cost:10e+15},
        {id:"09",target: "RED"     ,times:3,    cost:10e+17},
        {id:"10",target: 6          ,times:2,   cost:10e+19},
        {id:"11",target: "YELLOW"      ,times:2,cost:10e+21},
        {id:"12",target: 7          ,times:2,   cost:10e+23},
        {id:"13",target: "ALL"   ,times:2,      cost:10e+26},
        {id:"14",target: 8          ,times:2,   cost:10e+28},
        {id:"15",target: "BLUE"      ,times:2,  cost:10e+30},
        {id:"16",target: 9          ,times:2,   cost:10e+32},
        {id:"17",target: "RED"     ,times:2,    cost:10e+34},
        {id:"18",target:10          ,times:2,   cost:10e+36},
        {id:"19",target: "ALL"      ,times:2,   cost:10e+39},
        {id:"20",target:10          ,times:2,   cost:10e+41},
    ],
}
export default COMMON_VALUE